<%--
  Created by IntelliJ IDEA.
  User: User
  Date: 2024/9/4
  Time: 15:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <a href="<%=request.getContextPath()%>/session/login.jsp">返回登录</a>
    <form action="<%=request.getContextPath()%>/register.code" method="post">
        用户名: <input type="text" name="username"> <br>
        密码: <input type="password" name="password"> <br>
        电话: <input type="password" name="phone"> <br>
        地址: <input type="password" name="address"> <br>

        <input type="submit" value="提交">
        <span style="color:red;">
            <%
                String registerMsg= (String) request.getAttribute("registerMsg");
                if(null!=registerMsg){
                    out.print(registerMsg);
                }
            %>
        </span>
    </form>
</body>
</html>
